<!--
	dbconnector.php
	desc: 	Contains a MySQLLink class that enables the user to a have a link to
			MySQL to a database without having to do it manually
-->

<?php
	
	class MySQLLink{
		private $link;
		private $user;
		private $password;
		public $database;
		
		//connects to mysql using the specified username and password
		function connect(){
			$this->user = 'cms';
			$this->password = 'cms';
			$this->database = 'cmsdb';
			
			$this->link = mysql_connect("localhost",$this->user,$this->password);
		}
		
		//closes previously created link
		function disconnect(){
			@mysql_close($this->link);
		}	
	}	

?>